package com.galen.manual.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

@Data
@Schema(description = "Banner查询条件")
public class BannerQueryDTO {

    @Schema(description = "标题关键词")
    private String title;

    @Schema(description = "状态 0:禁用 1:启用")
    private Integer status;

    @Schema(description = "链接类型 0:无链接 1:内部页面 2:外部链接")
    private Integer linkType;

    @Min(value = 1, message = "页码必须大于0")
    @Schema(description = "页码", defaultValue = "1")
    private Integer pageNum = 1;

    @Min(value = 1, message = "每页数量必须大于0")
    @Max(value = 100, message = "每页数量不能超过100")
    @Schema(description = "每页数量", defaultValue = "10")
    private Integer pageSize = 10;
}